package cn.yitun.chat.yitunservercommonlib.converter.po2vo.group;

import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupRelationInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupRelationVo;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 群组分类
 */
@Mapper(componentModel = "spring")
public interface GroupCategoryMemberPo2VoConverter {
    GroupCategoryMemberPo2VoConverter INSTANCE = Mappers.getMapper(GroupCategoryMemberPo2VoConverter.class);

    GroupRelationInfo vo2po(GroupRelationVo vo);

    List<GroupRelationInfo> vo2po(List<GroupRelationVo> voList);

    @InheritInverseConfiguration
    GroupRelationVo po2vo(GroupRelationInfo info);
    @InheritInverseConfiguration
    List<GroupRelationVo> po2vo(List<GroupRelationInfo> infoList);
}
